import { $get, $post } from '../utils/request.js'

export let groupList = async (params)=>{
    let { code, message, data } = await $post('/group-list', params)
    return data
}

export let expenditure = async (params)=>{
    let { code, message, data } = await $post('/expenditure-list', params)
    return data
}

export let expenditureListCount = async (params)=>{
    let { code, message, data } = await $post('/expenditure/list/count', params)
    return data
}

export let addExpenditre = async (params)=>{
    let { code, message, data } = await $post('/expenditure-add', params)
    return data
}

export let updateExpenditre = async (params)=>{
    let { code, message, data } = await $post('/expenditure-update', params)
    return data
}
